using AutoMapper;
using SPACore.Phonebook.Phonebooks.Persons;
using SPACore.Phonebook.Phonebooks.PhoneNumbers;

namespace SPACore.Phonebook.Persons.Dtos.CustomMapper
{

	/// <summary>
	/// 配置Person的AutoMapper
	/// </summary>
	internal static class CustomerPersonMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <Person, PersonListDto>();
            configuration.CreateMap <PersonEditDto, Person>();

            configuration.CreateMap<PhoneNumber, PhoneNumberListDto>();
            configuration.CreateMap<PhoneNumberEditDto, PhoneNumber>();



            //// custom codes 

            //// custom codes end

        }
    }
}